<div class="page" data-ng-controller="editDonateCtrl">

    <section class="panel panel-default table-dynamic" style="padding-bottom: 60px">
        <div class="panel-heading">
            <strong>
                <span class="glyphicon glyphicon-th"></span>编辑内容</strong>
        </div>
        <div class="panel-body">
            <div class="col-md-11 col-md-1">
                <form class="form-horizontal form-validation" role="form">

                    <div class="form-group">
                        <label for="name" class="col-sm-2 control-label">姓名</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" id="name" placeholder="请填写捐赠人"
                                   value="{{donate.name}}" data-ng-model="donate.name"/>
                        </div>
                    </div>

                    <div class="form-group">
                        <label for="company" class="col-sm-2 control-label">公司</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" id="company" placeholder="捐赠人和公司可以只填一项"
                                   value="{{donate.company}}" data-ng-model="donate.company"/>
                        </div>
                    </div>

                    <div class="form-group">
                        <label for="phoneNumber" class="col-sm-2 control-label">联系方式</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" id="phoneNumber" placeholder=""
                                   value="{{donate.phoneNumber}}" data-ng-model="donate.phoneNumber"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="projectName" class="col-sm-2 control-label">捐赠项目</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" id="projectName" placeholder="请填写捐赠项目名称"
                                   value="{{donate.projectName}}" data-ng-model="donate.projectName"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="totalFee" class="col-sm-2 control-label">捐赠金额</label>
                        <div class="col-sm-10">
                            <input type="number" class="form-control" id="totalFee" placeholder="捐赠金额"
                                   value="{{donate.totalFee}}" data-ng-model="donate.totalFee"/>
                        </div>
                    </div>
                    
                    <div class="form-group">
                        <div class="col-sm-offset-2 col-sm-10">
                            <button type="submit" class="btn btn-success btn-w-md pull-right"
                                    data-ng-click="saveDonate()">保存
                            </button>
                        </div>
                    </div>
                </form>
            </div>

        </div>
    </section>


</div>